package com.plian.system.entity.nkgl;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.system.mybatis.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * 内控管理制度
 *
 * @author zsk
 * @since 2025-01-16
 */
@Data
@TableName("internal_management")
@EqualsAndHashCode(callSuper = true)
public class InternalManagement extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 单据编码
     */
    private String code;

    /**
     * 填报企业
     */
    private String fillCompanyId;

    /**
     * 填报年月
     */
    private String fillDate;

    /**
     * 报告类型
     */
    private String reportType;


    /**
     * 审批人
     */
    private String approvedUser;
    /**
     * 审批时间
     */
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date approvedTime;
    /**
     * 审批意见
     */
    private String approvedOpinion;
    /**
     * 乐观锁字段
     */
    private Integer tsVersion;
    /**
     * 审批流主键
     */
    private String formType;
    /**
     * 备选1
     */
    private String def1;
    /**
     * 备选2
     */
    private String def2;
    /**
     * 备选3
     */
    private String def3;
    /**
     * 备选4
     */
    private String def4;
    /**
     * 备选5
     */
    private String def5;
    /**
     * 备选6
     */
    private String def6;
    /**
     * 备选7
     */
    private String def7;
    /**
     * 备选8
     */
    private String def8;
    /**
     * 备选9
     */
    private BigDecimal def9;
    /**
     * 备选10
     */
    private BigDecimal def10;
    /**
     * 备选11
     */
    private BigDecimal def11;
    /**
     * 备选12
     */
    private BigDecimal def12;
    /**
     * 备选13
     */
    private BigDecimal def13;
    /**
     * 备选14
     */
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date def14;
    /**
     * 备选15
     */
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date def15;
    /**
     * 备选16
     */
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date def16;
    /**
     * 备选17
     */
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date def17;
    /**
     * 备选18
     */
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long def18;
    /**
     * 备选19
     */
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long def19;
    /**
     * 备选20
     */
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long def20;


    @TableField(exist = false)
    private List<HashMap> docList;


}
